/*    */ package com.cr.business.service.impl;
/*    */ 
/*    */ import com.cr.business.domain.CrNotice;
/*    */ import com.cr.business.mapper.CrNoticeMapper;
/*    */ import com.cr.business.service.ICrNoticeService;
/*    */ import com.cr.common.core.text.Convert;
/*    */ import com.cr.common.utils.MyDateUtils;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ @Service
/*    */ public class CrNoticeServiceImpl implements ICrNoticeService {
/*    */   @Autowired
/*    */   private CrNoticeMapper crNoticeMapper;
/*    */   
/*    */   public CrNotice selectCrNoticeByNoticeId(Long noticeId) {
/* 33 */     return this.crNoticeMapper.selectCrNoticeByNoticeId(noticeId);
/*    */   }
/*    */   
/*    */   public List<CrNotice> selectCrNoticeList(CrNotice crNotice) {
/* 45 */     return this.crNoticeMapper.selectCrNoticeList(crNotice);
/*    */   }
/*    */   
/*    */   public int insertCrNotice(CrNotice crNotice) {
/* 57 */     crNotice.setCreateTime(MyDateUtils.getNowDate());
/* 58 */     return this.crNoticeMapper.insertCrNotice(crNotice);
/*    */   }
/*    */   
/*    */   public int updateCrNotice(CrNotice crNotice) {
/* 70 */     crNotice.setUpdateTime(MyDateUtils.getNowDate());
/* 71 */     return this.crNoticeMapper.updateCrNotice(crNotice);
/*    */   }
/*    */   
/*    */   public int deleteCrNoticeByNoticeIds(String noticeIds) {
/* 83 */     return this.crNoticeMapper.deleteCrNoticeByNoticeIds(Convert.toStrArray(noticeIds));
/*    */   }
/*    */   
/*    */   public int deleteCrNoticeByNoticeId(Long noticeId) {
/* 95 */     return this.crNoticeMapper.deleteCrNoticeByNoticeId(noticeId);
/*    */   }
/*    */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\service\impl\CrNoticeServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */